<?php
require_once("../../../../class2.php");
require_once('f__.php');
require_once(HEADERF);

if(!ADMIN_LOGIN($_SESSION['aUSER'],$_SESSION['aPASS']))


    if(!ADMIN_LOGIN(GTPT('aUSER'),GTPT('aPASS'))){


        ADMIN_LOGIN_FORM();


        HTML_FOOTER();


        die();

    }

switch(GTPT('ACT')){


    case 'LOGOUT' :


        ADMIN_LOGOUT();


        GO('index.php');


        break;


    case 'SAVE_EDIT' :


        ADMIN_LINKBAR();


        SAVE_EDIT();


        LIST_ARCHIVE();


        MINI_BATCH_FORM();


        break;


    case 'REJECT' :


        $REJECT_RESULT=REJECT_EPAY(GTPT('batch_number'));


        if(CHECK_REJECT_RESULT($REJECT_RESULT)){


            db();


            if(!$sql=mysql_query(" delete from epay where batch_number='".GTPT('batch_number')."' limit 1 "))


                {ERROR("Unable to delete transaction from database");return false;}


        }


        break;

    case 'CHANGEPASS' :


        ADMIN_LINKBAR();


        CHANGEPASS_FORM();


        break;    

    case 'SAVEPASS' :


        ADMIN_LINKBAR();


        SAVEPASS();


        LIST_ARCHIVE();


        MINI_BATCH_FORM();


        break;

    DEFAULT :


        ADMIN_LINKBAR();


        LIST_ARCHIVE();


        MINI_BATCH_FORM();

}

require_once(FOOTERF);
